import {defHttp} from '/@/utils/http/axios';
import { useMessage } from "/@/hooks/web/useMessage";

const { createConfirm } = useMessage();

enum Api {
  atSchoolStatistics = '/channel/dashboard/atSchoolStatistics',
  visitStatistics = '/channel/dashboard/visitStatistics',
  channelAccessRecord = '/channel/dashboard/channelAccessRecord',
  askForLeaveStatistics = '/channel/dashboard/askForLeaveStatistics',
  studentStatistics = '/channel/dashboard/studentStatistics',
}
/**
 * 列表接口
 * @param params
 */
export const atSchoolStatistics = (params) =>{
 return defHttp.get({url: Api.atSchoolStatistics, params});
}

export const visitStatistics = (params) =>{
  return defHttp.get({url: Api.visitStatistics, params});
}

export const channelAccessRecord = (params) =>{
  return defHttp.get({url: Api.channelAccessRecord, params});
}

export const askForLeaveStatistics = (params) =>{
  return defHttp.get({url: Api.askForLeaveStatistics, params});
}

export const studentStatistics = (params) =>{
  return defHttp.get({url: Api.studentStatistics, params});
}

